package com.io.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.io.entity.one2one.Husband;
import com.io.dao.TbHusbandMapper;
import com.io.service.TbHusbandService;

import java.util.List;

/**
 * The class/interface
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
@Service
public class TbHusbandServiceImpl implements TbHusbandService{

    @Resource
    private TbHusbandMapper tbHusbandMapper;

    @Override
    public int deleteByPrimaryKey(Integer sid) {
        return tbHusbandMapper.deleteByPrimaryKey(sid);
    }

    @Override
    public int insert(Husband record) {
        return tbHusbandMapper.insert(record);
    }

    @Override
    public int insertSelective(Husband record) {
        return tbHusbandMapper.insertSelective(record);
    }

    @Override
    public Husband selectByPrimaryKey(Integer sid) {
        return tbHusbandMapper.selectByPrimaryKey(sid);
    }

    @Override
    public int updateByPrimaryKeySelective(Husband record) {
        return tbHusbandMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Husband record) {
        return tbHusbandMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Husband> getHus() {
        return tbHusbandMapper.getHus();
    }

}
